<?php

/**
 * @author honestphan
 * @copyright 2012
 */
 
 //G?i t?p tin giao di?n trong thu m?c view/theme/template tuong ?ng
include('model/m_cauhinh.php');
include('controller/c_thongke.php');
$page = $_GET['act'];
 switch($page){
    
     case 'chung':
   
     if(!$_SESSION['loged']){
         header('LOCATION: index.php?module=canbo&act=login');  
         exit();
     }
    
     require ('language/cauhinh/chung.php');
     $title = heading_title;
     $heading_title = heading_title;
     $ten_cong_ty = ten_cong_ty;
     $ten_viet_tat = ten_viet_tat;
     $ten_dang_nhap = ten_dang_nhap;
     $dia_chi = dia_chi;
     $dien_thoai_noi_bo = dien_thoai_noi_bo;
     $dien_thoai_co_quan = dien_thoai_co_quan;
     $dien_thoai_nha_rieng = dien_thoai_nha_rieng;
     $di_dong = di_dong;
     $fax = fax;
     $email = email;
     $ten = ten;
     $dt =dt;
     $yahoo = yahoo;
     $yahoo1 = yahoo1;
     $yahoo2 = yahoo2;
     $trang_thai = trang_thai;
     $bao_tri = bao_tri;
     $active = active;
     $deactive = deactive;
     $description = description;
     $keyword = keyword;
    
     $link_list = 'index.php?module=cauhinh&act=chung';
     $cauhinh = getCauhinh(1);
      //kiem tra su ton tai
    
    
    if($_SERVER['REQUEST_METHOD']=='POST')
    {
   
    editCauhinh(1, $_POST);
    $success = edit_success;
    $_SESSION['success'] = edit_success;
    //chuyen huong ve list
    header('LOCATION: '.$link_list);
    exit();    
    }
    require('view/template/cauhinh/chung.tpl');
    break;
    

 }
 
?>